﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace homeIMSClient.Model
{
    public class purchInfo
    {
        //private variables to store detailed information for each asset
        private int _purchID;
        private DateTime _date;
        private int _cost;
        private string _store;
        private string _comments;

        //public variables to access for chagne
        public int PurchID
        {
            get { return _purchID; }
        }

        public DateTime Date
        {
            get { return _date; }
            set { _date = value; }
        }

        public int Cost
        {
            get { return _cost; }
            set { _cost = value; }
        }

        public string Store
        {
            get { return _store; }
            set { _store = value; }
        }

        public string Comments
        {
            get { return _comments; }
            set { _comments = value; }
        }

        //consturctor used to store values when passed asset sensetive information
        public purchInfo(homeIMSRef.purchInfo purchaseInfo)
        {
            _purchID = purchaseInfo.purchID;
            _date = purchaseInfo.date;
            _cost = purchaseInfo.cost;
            _store = purchaseInfo.store;
            _comments = purchaseInfo.comments;
        }

    }
}
